let listData = [
  {
    id: 1,
    name: "污水泵0321",
    model: "LA-1118",
    material: "金属",
    status: 2,
    purchaseDate: "2025-04-09",
    contractNumber: "20250817001",
    dueDate: "2028-09-17",
    maintenanceDays: 30,
    telph: "13031702987",
  },
  {
    id: 2,
    name: "污水泵0321",
    model: "LA-1118",
    material: "金属",
    status: 0,
    purchaseDate: "2025-04-09",
    contractNumber: "20250817001",
    dueDate: "2028-09-17",
    maintenanceDays: 30,
    telph: "13031702987",
  },
  {
    id: 3,
    name: "污水泵0321",
    model: "LA-1118",
    material: "金属",
    status: 1,
    purchaseDate: "2025-04-09",
    contractNumber: "20250817001",
    dueDate: "2028-09-17",
    maintenanceDays: 30,
    telph: "13031702987",
  },
  {
    id: 4,
    name: "污水泵0321",
    model: "LA-1118",
    material: "金属",
    status: 1,
    purchaseDate: "2025-04-09",
    contractNumber: "20250817001",
    dueDate: "2028-09-17",
    maintenanceDays: 30,
    telph: "13031702987",
  },
  {
    id: 5,
    name: "污水泵0321",
    model: "LA-1118",
    material: "金属",
    status: 1,
    purchaseDate: "2025-04-09",
    contractNumber: "20250817001",
    dueDate: "2028-09-17",
    maintenanceDays: 30,
    telph: "13031702987",
  },
  {
    id: 6,
    name: "污水泵0321",
    model: "LA-1118",
    material: "金属",
    status: 1,
    purchaseDate: "2025-04-09",
    contractNumber: "20250817001",
    dueDate: "2028-09-17",
    maintenanceDays: 30,
    telph: "13031702987",
  },
  {
    id: 7,
    name: "污水泵0321",
    model: "LA-1118",
    material: "金属",
    status: 1,
    purchaseDate: "2025-04-09",
    contractNumber: "20250817001",
    dueDate: "2028-09-17",
    maintenanceDays: 30,
    telph: "13031702987",
  },
  {
    id: 8,
    name: "污水泵0321",
    model: "LA-1118",
    material: "金属",
    status: 1,
    purchaseDate: "2025-04-09",
    contractNumber: "20250817001",
    dueDate: "2028-09-17",
    maintenanceDays: 30,
    telph: "13031702987",
  },
  {
    id: 9,
    name: "污水泵0321",
    model: "LA-1118",
    material: "金属",
    status: 1,
    purchaseDate: "2025-04-09",
    contractNumber: "20250817001",
    dueDate: "2028-09-17",
    maintenanceDays: 30,
    telph: "13031702987",
  },
  {
    id: 10,
    name: "污水泵0321",
    model: "LA-1118",
    material: "金属",
    status: 1,
    purchaseDate: "2025-04-09",
    contractNumber: "20250817001",
    dueDate: "2028-09-17",
    maintenanceDays: 30,
    telph: "13031702987",
  },
];

//获取分页数据
const getPageList = (req: any, res: any) => {
  // let item = JSON.parse(req.body);
  return {
    code: 200,
    message: "",
    data: { records: listData, total: 30 },
  };
};

//新增接口
const addData = (req: any, res: any) => {
  return {
    code: 200,
    message: "新增成功",
    data: null,
  };
};

//更新接口
const updData = (req: any, res: any) => {
  return {
    code: 200,
    message: "更新成功",
    data: null,
  };
};

//设置报废
const scrapData = (req: any, res: any) => {
  return {
    code: 200,
    message: "报废设置成功",
    data: null,
  };
};

export default { getPageList, addData, updData };
